import request from "../utils/request";
/**
 * 登录接口
 * @param {*} data 要传的参数
 * @returns
 */
export function apiLogin(data) {
  return request({
    url: "/login.php",
    method: "get",
    params: data,
  });
}
/**
 * 示例
 * @param {}} data
 * @returns
 */
export function apiGetUserinfo(data) {
  return request({
    url: "/getUserinfo",
    method: "get",
    params: data,
  });
}

/**
 * get => params
 * post => data
 */
/**
 * 退出登录
 * @returns
 */
export function apiLogout() {
  return request({
    url: "/loginOut.php",
    method: "post",
  });
}
